import $r from '@/utils/request'
// ``````````````````收款类型
export async function fetchCollectionType(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/busContractType/selectContractType', {
    method: 'GET',
    params,
  })
}
export async function saveCollectionType(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/fundType/updateFundType', {
    method: 'POST',
    data: params,
  })
}
export async function addCollectionType(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/fundType/addFundType', {
    method: 'POST',
    data: params,
  })
}
// ``````````````````收款方式
export async function saveCollectionWay(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/receiveType/updateReceiveType', {
    method: 'POST',
    data: params,
  })
}
export async function addCollectionWay(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/receiveType/addReceiveType', {
    method: 'POST',
    data: params,
  })
}
export async function fetchCollectionWay(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/receiveType/selectReceiveType', {
    method: 'GET',
    params,
  })
}
export async function deleteCollectionWay(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/receiveType/deleteReceiveType', {
    method: 'POST',
    data: params,
  })
}
// ············交费提醒
export async function fetchMessage(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/busReceiveInfo/selectMessageBaseInfo', {
    method: 'GET',
    params,
  })
}
export async function sendMessage(params = {}) {
  return $r('/Amaidan-Merchants-Web/merchants/busReceiveInfo/sendMessage', {
    method: 'POST',
    data: params,
  })
}
export async function sendHistory(params = { settlementCode: '' }) {
  return $r('/Amaidan-Merchants-Web/merchants/busReceiveInfo/selectSendHistory', {
    method: 'POST',
    data: params,
  })
}
